home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 167_01 / c_wdef.inc < prev    next >
Text File  |  1985-08-19  |  3KB  |  93 lines

  1. /* C_WDEF.INC - Include file for C_WINDOW Vers 1.0 */
  2.  
  3.  
  4. #define FALSE   0
  5. #define TRUE    1
  6.  
  7. /* Window border types sent to w_open() */
  8. #define SPACES  0       /* blanks */
  9. #define SNGL_LN 1       /* single lines */
  10. #define DBL_LN  2       /* double lines */
  11. #define MXD_1   3       /* double horiz, single vert */
  12. #define MXD_2   4       /* double vert, single horiz */
  13. #define BLK_LN  5       /* block characters */
  14.  
  15. /* Monochrome defines */
  16. #define NORM    0x07    /* std. white on black */
  17. #define REVERS  0x70    /* reverse video */
  18. /* Character display attributes, to be */
  19. /* added or ORed to the above base modes */
  20. #define BRIGHT  0x08
  21. #define BLINK   0x80
  22.  
  23. /* Color screen foreground defines */
  24. #define FG_BLACK        0x00
  25. #define FG_BLUE         0x01
  26. #define FG_GREEN        0x02
  27. #define FG_CYAN         0x03
  28. #define FG_RED          0x04
  29. #define FG_MAGENTA      0x05
  30. #define FG_BROWN        0x06
  31. #define FG_WHITE        0x07
  32. #define FG_GRAY         0x08
  33. #define FG_LTBLUE       0x09    /* light blue */
  34. #define FG_LTGREEN      0x0A    /* light green */
  35. #define FG_LTCYAN       0x0B    /* light cyan */
  36. #define FG_LTRED        0x0C    /* light red */
  37. #define FG_LTMAGENTA    0x0D    /* light magenta */
  38. #define FG_YELLOW       0x0E
  39. #define FG_BRTWHITE     0x0F    /* bright white */
  40. /* Color screen background defines to be ORed to */
  41. /* the above foreground colors */
  42. #define BG_BLACK        0x00
  43. #define BG_BLUE         0x10
  44. #define BG_GREEN        0x20
  45. #define BG_CYAN         0x30
  46. #define BG_RED          0x40
  47. #define BG_MAGENTA      0x50
  48. #define BG_BROWN        0x60
  49. #define BG_WHITE        0x70
  50. /* Color screen blink attribute to be ORed to the */
  51. /* above foreground colors */
  52. #define COLRBLINK       0x80
  53.  
  54. /* Direction of window scroll */
  55. #define UP      0
  56. #define DOWN    1
  57.  
  58. /* Border parameter sent to w_def () */
  59. #define NOBORDER 0
  60. #define BORDER  1
  61.  
  62. /* Parameter sent to w_open () */
  63. #define NOCLR   0       /* No window pre-clear */
  64. #define CLR     1       /* Pre-clear window */
  65.  
  66. /* Allow access to C_WINDOW functions */
  67. extern  w_init ();
  68. extern  w_def ();
  69. extern  w_open ();
  70. extern  w_close ();
  71. extern  w_kill ();
  72. extern  w_write ();
  73. extern  w_dsp1 ();
  74. extern  w_getstr ();
  75. extern  w_scroll ();
  76. extern  w_getcx ();
  77. extern  w_getcy ();
  78. extern  w_gotoxy ();
  79.  
  80. /* Non-windowing specific */
  81. extern  border ();
  82. extern  keyin ();
  83. extern  beep ();
  84.  
  85. /* Flag altered by keyin () */
  86. extern  char extend;
  87.  
  88. /* Flag used in error handling */
  89. extern  char err_exit; 
  90. 
  91. ow, plus the section of the screen that each
  92.     window overlays.  The window buffer size has been defined in the
  93.     C_